/**
 * Ingenius-Group S.A.S
 *
 * Project: SAU
 * File: EditFeature2EvaluateEvent.java
 * Date: 08/02/2011
 */

package com.ingenius.sau.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.ingenius.sau.client.event.EditFeature2EvaluateEvent.EditFeature2EvaluateEventHandler;

/**
 * Class <strong>EditFeature2EvaluateEvent</strong>
 * 
 * @author Jesus David
 * @version 0.1
 */
public class EditFeature2EvaluateEvent extends
		GwtEvent<EditFeature2EvaluateEventHandler> {

	public interface EditFeature2EvaluateEventHandler extends EventHandler {

		void onEditFeature2Evaluate(EditFeature2EvaluateEvent event);
	}

	public static Type<EditFeature2EvaluateEventHandler> TYPE = new Type<EditFeature2EvaluateEventHandler>();

	private final String feature2EvaluateId;

	public EditFeature2EvaluateEvent(String feature2EvaluateId) {
		this.feature2EvaluateId = feature2EvaluateId;
	}

	public String getFeature2EvaluateId() {
		return feature2EvaluateId;
	}

	@Override
	public Type<EditFeature2EvaluateEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditFeature2EvaluateEventHandler handler) {
		handler.onEditFeature2Evaluate(this);
	}

}
